package com.yunxi.poc.starbucks.service;

import com.yunxi.poc.starbucks.entity.TOrderNew;
import com.yunxi.poc.starbucks.vo.StoreRateVO;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author shiyuan.xlc
 * @since 2021-08-12
 */
public interface IBuyService {

    /**
     * 门店打分服务
     *
     * @param buyerLon
     * @param buyerLat
     * @param buyTime
     * @return
     */
    List<StoreRateVO> storeRatings(double buyerLon, double buyerLat, LocalDateTime buyTime, String storeId, TOrderNew orderNew);

    /**
     * 批量计算线上订单
     *
     * @param start
     * @param end
     * @param storeIds
     */
    void batchMockBuyByStores(LocalDateTime start, LocalDateTime end, String[] storeIds);

    /**
     * 批量计算线上订单
     *
     * @param orderIds
     */
    void batchMockBuyByOrders(String[] orderIds);

    /**
     * 根据 t_order_input 批量计算订单
     */
    void batchMockBuyByInputOrders();
}